home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Anonimowosc i bezpieczenstwo / TOR 0.1.1.24 / vidalia-bundle-0.1.1.24-0.0.7.exe / Privoxy / config.txt < prev    next >
Text File  |  2006-05-24  |  32KB  |  1,075 lines

  1. forward-socks4a / localhost:9050 .
  2.  
  3. #        Sample Configuration File for Privoxy v3.0.x
  4. #  
  5. #  Copyright (C) 2001-2004 Privoxy Developers http://privoxy.org
  6. #  
  7. #  $Id: config,v 1.39.2.13 2004/01/29 12:56:03 oes Exp $
  8. #  
  9. ####################################################################
  10. #                                                                  #
  11. #                      Table of Contents                           #
  12. #                                                                  #
  13. #        I. INTRODUCTION                                           #
  14. #       II. FORMAT OF THE CONFIGURATION FILE                       #
  15. #                                                                  #
  16. #        1. CONFIGURATION AND LOG FILE LOCATIONS                   #
  17. #        2. LOCAL SET-UP DOCUMENTATION                             #
  18. #        3. DEBUGGING                                              #
  19. #        4. ACCESS CONTROL AND SECURITY                            #
  20. #        5. FORWARDING                                             #
  21. #        6. WINDOWS GUI OPTIONS                                    #
  22. #                                                                  #
  23. ####################################################################
  24. #  
  25. #  
  26. #  I. INTRODUCTION
  27. #   ===============
  28. #  
  29. #  This file holds the Privoxy configuration. If you modify this file,
  30. #  you will need to send a couple of requests to the proxy before any
  31. #  changes take effect.
  32. #  
  33. #  When starting Privoxy on Unix systems, give the name of this file as
  34. #  an argument. On Windows systems, Privoxy will look for this file
  35. #  with the name 'config.txt' in the same directory where Privoxy
  36. #  is installed.
  37. #  
  38. #  
  39. #  II. FORMAT OF THE CONFIGURATION FILE
  40. #  ====================================
  41. #  
  42. #  Configuration lines consist of an initial keyword followed by a
  43. #  list of values, all separated by whitespace (any number of spaces
  44. #  or tabs). For example,
  45. #  
  46. #  actionsfile default.action
  47. #  
  48. #  Indicates that the actionsfile is named 'default.action'.
  49. #  
  50. #  The '#' indicates a comment. Any part of a line following a '#'
  51. #  is ignored, except if the '#' is preceded by a '\'.
  52. #  
  53. #  Thus, by placing a # at the start of an existing configuration line,
  54. #  you can make it a comment and it will be treated as if it weren't
  55. #  there. This is called "commenting out" an option and can be useful.
  56. #  
  57. #  Note that commenting out and option and leaving it at its default
  58. #  are two completely different things! Most options behave very
  59. #  differently when unset.  See the the "Effect if unset" explanation
  60. #  in each option's description for details.
  61. #  
  62. #  Long lines can be continued on the next line by using a `\' as the
  63. #  last character.
  64. #  
  65.  
  66. #  
  67. #  1. CONFIGURATION AND LOG FILE LOCATIONS
  68. #  =======================================
  69. #  
  70. #  Privoxy can (and normally does) use a number of other files for
  71. #  additional configuration, help and logging. This section of the
  72. #  configuration file tells Privoxy where to find those other files.
  73. #  
  74. #  The user running Privoxy, must have read permission for all
  75. #  configuration files, and write permission to any files that would
  76. #  be modified, such as log files and actions files.
  77. #  
  78.  
  79. #  
  80. #  1.1. confdir
  81. #  ============
  82. #  
  83. #  Specifies:
  84. #  
  85. #      The directory where the other configuration files are located
  86. #  
  87. #  Type of value:
  88. #  
  89. #      Path name
  90. #  
  91. #  Default value:
  92. #  
  93. #      /etc/privoxy (Unix) or Privoxy installation dir (Windows)
  94. #  
  95. #  Effect if unset:
  96. #  
  97. #      Mandatory
  98. #  
  99. #  Notes:
  100. #  
  101. #      No trailing "/", please
  102. #  
  103. #      When development goes modular and multi-user, the blocker,
  104. #      filter, and per-user config will be stored in subdirectories of
  105. #      "confdir". For now, the configuration directory structure is
  106. #      flat, except for confdir/templates, where the HTML templates
  107. #      for CGI output reside (e.g. Privoxy's 404 error page).
  108. #  
  109. confdir .
  110.  
  111. #  
  112. #  1.2. logdir
  113. #  ===========
  114. #  
  115. #  Specifies:
  116. #  
  117. #      The directory where all logging takes place (i.e. where logfile
  118. #      and jarfile are located)
  119. #  
  120. #  Type of value:
  121. #  
  122. #      Path name
  123. #  
  124. #  Default value:
  125. #  
  126. #      /var/log/privoxy (Unix) or Privoxy installation dir (Windows)
  127. #  
  128. #  Effect if unset:
  129. #  
  130. #      Mandatory
  131. #  
  132. #  Notes:
  133. #  
  134. #      No trailing "/", please
  135. #  
  136. logdir .
  137.  
  138. #  
  139. #  1.3. actionsfile
  140. #  ================
  141. #  
  142. #  Specifies:
  143. #  
  144. #      The actions file(s) to use
  145. #  
  146. #  Type of value:
  147. #  
  148. #      File name, relative to confdir, without the .action suffix
  149. #  
  150. #  Default values:
  151. #  
  152. #        standard     # Internal purposes, no editing recommended
  153. #  
  154. #        default      # Main actions file
  155. #  
  156. #        user         # User customizations
  157. #  
  158. #  Effect if unset:
  159. #  
  160. #      No actions are taken at all. Simple neutral proxying.
  161. #  
  162. #  Notes:
  163. #  
  164. #      Multiple actionsfile lines are permitted, and are in fact
  165. #      recommended!
  166. #  
  167. #      The default values include standard.action, which is used
  168. #      for internal purposes and should be loaded, default.action,
  169. #      which is the "main" actions file maintained by the developers,
  170. #      and user.action, where you can make your personal additions.
  171. #  
  172. #      Actions files are where all the per site and per URL
  173. #      configuration is done for ad blocking, cookie management,
  174. #      privacy considerations, etc. There is no point in using Privoxy
  175. #      without at least one actions file.
  176. #  
  177. actionsfile standard  # Internal purpose, recommended
  178. actionsfile default   # Main actions file
  179. actionsfile user      # User customizations
  180.  
  181. #  
  182. #  1.4. filterfile
  183. #  ===============
  184. #  
  185. #  Specifies:
  186. #  
  187. #      The filter file to use
  188. #  
  189. #  Type of value:
  190. #  
  191. #      File name, relative to confdir
  192. #  
  193. #  Default value:
  194. #  
  195. #      default.filter (Unix) or default.filter.txt (Windows)
  196. #  
  197. #  Effect if unset:
  198. #  
  199. #      No textual content filtering takes place, i.e. all +filter{name}
  200. #      actions in the actions files are turned neutral.
  201. #  
  202. #  Notes:
  203. #  
  204. #      The filter file contains content modification rules that use
  205. #      regular expressions. These rules permit powerful changes on the
  206. #      content of Web pages, e.g., you could disable your favorite
  207. #      JavaScript annoyances, re-write the actual displayed text,
  208. #      or just have some fun replacing "Microsoft" with "MicroSuck"
  209. #      wherever it appears on a Web page.
  210. #  
  211. #      The +filter{name} actions rely on the relevant filter (name)
  212. #      to be defined in the filter file!
  213. #  
  214. #      A pre-defined filter file called default.filter that contains
  215. #      a bunch of handy filters for common problems is included in the
  216. #      distribution. See the section on the filter action for a list.
  217. #  
  218. filterfile default.filter
  219.  
  220. #  
  221. #  1.5. logfile
  222. #  ============
  223. #  
  224. #  Specifies:
  225. #  
  226. #      The log file to use
  227. #  
  228. #  Type of value:
  229. #  
  230. #      File name, relative to logdir
  231. #  
  232. #  Default value:
  233. #  
  234. #      logfile (Unix) or privoxy.log (Windows)
  235. #  
  236. #  Effect if unset:
  237. #  
  238. #      No log file is used, all log messages go to the console (STDERR).
  239. #  
  240. #  Notes:
  241. #  
  242. #      The windows version will additionally log to the console.
  243. #  
  244. #      The logfile is where all logging and error messages are
  245. #      written. The level of detail and number of messages are set with
  246. #      the debug option (see below).  The logfile can be useful for
  247. #      tracking down a problem with Privoxy (e.g., it's not blocking
  248. #      an ad you think it should block) but in most cases you probably
  249. #      will never look at it.
  250. #  
  251. #      Your logfile will grow indefinitely, and you will probably
  252. #      want to periodically remove it. On Unix systems, you can do
  253. #      this with a cron job (see "man cron"). For Red Hat, a logrotate
  254. #      script has been included.
  255. #  
  256. #      On SuSE Linux systems, you can place a line like
  257. #      "/var/log/privoxy.* +1024k 644 nobody.nogroup" in /etc/logfiles,
  258. #      with the effect that cron.daily will automatically archive,
  259. #      gzip, and empty the log, when it exceeds 1M size.
  260. #  
  261. #      Any log files must be writable by whatever user Privoxy is
  262. #      being run as (default on UNIX, user id is "privoxy").
  263. #  
  264. #logfile privoxy.log
  265.  
  266. #  
  267. #  1.6. jarfile
  268. #  ============
  269. #  
  270. #  Specifies:
  271. #  
  272. #      The file to store intercepted cookies in
  273. #  
  274. #  Type of value:
  275. #  
  276. #      File name, relative to logdir
  277. #  
  278. #  Default value:
  279. #  
  280. #      jarfile (Unix) or privoxy.jar (Windows)
  281. #  
  282. #  Effect if unset:
  283. #  
  284. #      Intercepted cookies are not stored at all.
  285. #  
  286. #  Notes:
  287. #  
  288. #      The jarfile may grow to ridiculous sizes over time.
  289. #  
  290. #jarfile jar.log
  291.  
  292. #  
  293. #  1.7. trustfile
  294. #  ==============
  295. #  
  296. #  Specifies:
  297. #  
  298. #      The trust file to use
  299. #  
  300. #  Type of value:
  301. #  
  302. #      File name, relative to confdir
  303. #  
  304. #  Default value:
  305. #  
  306. #      Unset (commented out). When activated: trust (Unix) or trust.txt
  307. #      (Windows)
  308. #  
  309. #  Effect if unset:
  310. #  
  311. #      The entire trust mechanism is turned off.
  312. #  
  313. #  Notes:
  314. #  
  315. #      The trust mechanism is an experimental feature for building
  316. #      white-lists and should be used with care. It is NOT recommended
  317. #      for the casual user.
  318. #  
  319. #      If you specify a trust file, Privoxy will only allow access to
  320. #      sites that are specified in the trustfile. Sites can be listed
  321. #      in one of two ways:
  322. #  
  323. #      Prepending a ~ character limits access to this site only (and
  324. #      any sub-paths within this site), e.g. ~www.example.com.
  325. #  
  326. #      Or, you can designate sites as trusted referrers, by prepending
  327. #      the name with a + character. The effect is that access to
  328. #      untrusted sites will be granted -- but only if a link from this
  329. #      trusted referrer was used. The link target will then be added
  330. #      to the "trustfile" so that future, direct accesses will be
  331. #      granted. Sites added via this mechanism do not become trusted
  332. #      referrers themselves (i.e. they are added with a ~ designation).
  333. #  
  334. #      If you use the + operator in the trust file, it may grow
  335. #      considerably over time.
  336. #  
  337. #      It is recommended that Privoxy be compiled with the
  338. #      --disable-force, --disable-toggle and --disable-editor options,
  339. #      if this feature is to be used.
  340. #  
  341. #      Possible applications include limiting Internet access for
  342. #      children.
  343. #  
  344. #trustfile trust
  345.  
  346. #  
  347. #  2. LOCAL SET-UP DOCUMENTATION
  348. #  =============================
  349. #  
  350. #  If you intend to operate Privoxy for more users than just yourself,
  351. #  it might be a good idea to let them know how to reach you, what
  352. #  you block and why you do that, your policies, etc.
  353. #  
  354.  
  355. #  
  356. #  2.1. user-manual
  357. #  ================
  358. #  
  359. #  Specifies:
  360. #  
  361. #      Location of the Privoxy User Manual.
  362. #  
  363. #  Type of value:
  364. #  
  365. #      A fully qualified URI
  366. #  
  367. #  Default value:
  368. #  
  369. #      Unset
  370. #  
  371. #  Effect if unset:
  372. #  
  373. #      http://www.privoxy.org/version/user-manual/ will be used,
  374. #      where version is the Privoxy version.
  375. #  
  376. #  Notes:
  377. #  
  378. #      The User Manual URI is used for help links from some of the
  379. #      internal CGI pages. The manual itself is normally packaged
  380. #      with the binary distributions, so you probably want to set this
  381. #      to a locally installed copy. For multi-user setups, you could
  382. #      provide a copy on a local webserver for all your users and use
  383. #      the corresponding URL here.
  384. #  
  385. #      Examples:
  386. #  
  387. #      Unix, in local filesystem:
  388. #  
  389. #       user-manual file:///usr/share/doc/privoxy-3.0.1/user-manual/index.html
  390. #  
  391. #      Windows, in local filesystem, must use forward slash notation,
  392. #      and %20 to denote spaces in path names:
  393. #  
  394. #       user-manual file:///c:/some%20dir/privoxy/user-manual/index.html
  395. #  
  396. #      Windows, UNC notation (forward slashes required again):
  397. #  
  398. #       user-manual file://///some-server/some-path/privoxy/user-manual/index.html
  399. #  
  400. #      Any platform, on local webserver (called "local-webserver"):
  401. #  
  402. #       user-manual  http://local-webserver/privoxy-user-manual/
  403. #  
  404. #      WARNING!!!
  405. #  
  406. #          If set, this option should be the first option in the config
  407. #          file, because it is used while the config file is being read.
  408. #  
  409. #user-manual http://www.privoxy.org/user-manual/
  410.  
  411. #  
  412. #  2.2. trust-info-url
  413. #  ===================
  414. #  
  415. #  Specifies:
  416. #  
  417. #      A URL to be displayed in the error page that users will see if
  418. #      access to an untrusted page is denied.
  419. #  
  420. #  Type of value:
  421. #  
  422. #      URL
  423. #  
  424. #  Default value:
  425. #  
  426. #      Two example URL are provided
  427. #  
  428. #  Effect if unset:
  429. #  
  430. #      No links are displayed on the "untrusted" error page.
  431. #  
  432. #  Notes:
  433. #  
  434. #      The value of this option only matters if the experimental trust
  435. #      mechanism has been activated. (See trustfile above.)
  436. #  
  437. #      If you use the trust mechanism, it is a good idea to write
  438. #      up some on-line documentation about your trust policy and to
  439. #      specify the URL(s) here. Use multiple times for multiple URLs.
  440. #  
  441. #      The URL(s) should be added to the trustfile as well, so users
  442. #      don't end up locked out from the information on why they were
  443. #      locked out in the first place!
  444. #  
  445. trust-info-url  http://www.example.com/why_we_block.html
  446. trust-info-url  http://www.example.com/what_we_allow.html
  447.  
  448. #  
  449. #  2.3. admin-address
  450. #  ==================
  451. #  
  452. #  Specifies:
  453. #  
  454. #      An email address to reach the proxy administrator.
  455. #  
  456. #  Type of value:
  457. #  
  458. #      Email address
  459. #  
  460. #  Default value:
  461. #  
  462. #      Unset
  463. #  
  464. #  Effect if unset:
  465. #  
  466. #      No email address is displayed on error pages and the CGI user
  467. #      interface.
  468. #  
  469. #  Notes:
  470. #  
  471. #      If both admin-address and proxy-info-url are unset, the whole
  472. #      "Local Privoxy Support" box on all generated pages will not
  473. #      be shown.
  474. #  
  475. #admin-address privoxy-admin@example.com
  476.  
  477. #  
  478. #  2.4. proxy-info-url
  479. #  ===================
  480. #  
  481. #  Specifies:
  482. #  
  483. #      A URL to documentation about the local Privoxy setup,
  484. #      configuration or policies.
  485. #  
  486. #  Type of value:
  487. #  
  488. #      URL
  489. #  
  490. #  Default value:
  491. #  
  492. #      Unset
  493. #  
  494. #  Effect if unset:
  495. #  
  496. #      No link to local documentation is displayed on error pages and
  497. #      the CGI user interface.
  498. #  
  499. #  Notes:
  500. #  
  501. #      If both admin-address and proxy-info-url are unset, the whole
  502. #      "Local Privoxy Support" box on all generated pages will not
  503. #      be shown.
  504. #  
  505. #      This URL shouldn't be blocked ;-)
  506. #  
  507. #proxy-info-url http://www.example.com/proxy-service.html
  508.  
  509. #  
  510. #  3. DEBUGGING
  511. #  ============
  512. #  
  513. #  These options are mainly useful when tracing a problem. Note that
  514. #  you might also want to invoke Privoxy with the --no-daemon command
  515. #  line option when debugging.
  516. #  
  517.  
  518. #  
  519. #  3.1. debug
  520. #  ==========
  521. #  
  522. #  Specifies:
  523. #  
  524. #      Key values that determine what information gets logged to
  525. #      the logfile.
  526. #  
  527. #  Type of value:
  528. #  
  529. #      Integer values
  530. #  
  531. #  Default value:
  532. #  
  533. #      12289 (i.e.: URLs plus informational and warning messages)
  534. #  
  535. #  Effect if unset:
  536. #  
  537. #      Nothing gets logged.
  538. #  
  539. #  Notes:
  540. #  
  541. #      The available debug levels are:
  542. #  
  543. #          debug         1 # show each GET/POST/CONNECT request 
  544. #          debug         2 # show each connection status 
  545. #          debug         4 # show I/O status 
  546. #          debug         8 # show header parsing 
  547. #          debug        16 # log all data into the logfile 
  548. #          debug        32 # debug force feature 
  549. #          debug        64 # debug regular expression filter
  550. #          debug       128 # debug fast redirects 
  551. #          debug       256 # debug GIF de-animation 
  552. #          debug       512 # Common Log Format
  553. #          debug      1024 # debug kill pop-ups 
  554. #          debug      2048 # CGI user interface 
  555. #          debug      4096 # Startup banner and warnings.
  556. #          debug      8192 # Non-fatal errors
  557. #  
  558. #      To select multiple debug levels, you can either add them or
  559. #      use multiple debug lines.
  560. #  
  561. #      A debug level of 1 is informative because it will show you each
  562. #      request as it happens. 1, 4096 and 8192 are highly recommended
  563. #      so that you will notice when things go wrong. The other levels
  564. #      are probably only of interest if you are hunting down a specific
  565. #      problem. They can produce a hell of an output (especially 16).
  566. #  
  567. #      The reporting of fatal errors (i.e. ones which crash Privoxy)
  568. #      is always on and cannot be disabled.
  569. #  
  570. #      If you want to use CLF (Common Log Format), you should set
  571. #      "debug 512" ONLY and not enable anything else.
  572. #  
  573. debug   1    # show each GET/POST/CONNECT request
  574. debug   4096 # Startup banner and warnings
  575. debug   8192 # Errors - *we highly recommended enabling this*
  576.  
  577. #  
  578. #  3.2. single-threaded
  579. #  ====================
  580. #  
  581. #  Specifies:
  582. #  
  583. #      Whether to run only one server thread
  584. #  
  585. #  Type of value:
  586. #  
  587. #      None
  588. #  
  589. #  Default value:
  590. #  
  591. #      Unset
  592. #  
  593. #  Effect if unset:
  594. #  
  595. #      Multi-threaded (or, where unavailable: forked) operation,
  596. #      i.e. the ability to serve multiple requests simultaneously.
  597. #  
  598. #  Notes:
  599. #  
  600. #      This option is only there for debug purposes and you should
  601. #      never need to use it. It will drastically reduce performance.
  602. #  
  603. #single-threaded
  604.  
  605. #  
  606. #  4. ACCESS CONTROL AND SECURITY
  607. #  ==============================
  608. #  
  609. #  This section of the config file controls the security-relevant
  610. #  aspects of Privoxy's configuration.
  611. #  
  612.  
  613. #  
  614. #  4.1. listen-address
  615. #  ===================
  616. #  
  617. #  Specifies:
  618. #  
  619. #      The IP address and TCP port on which Privoxy will listen for
  620. #      client requests.
  621. #  
  622. #  Type of value:
  623. #  
  624. #      [IP-Address]:Port
  625. #  
  626. #  Default value:
  627. #  
  628. #      127.0.0.1:8118
  629. #  
  630. #  Effect if unset:
  631. #  
  632. #      Bind to 127.0.0.1 (localhost), port 8118. This is suitable and
  633. #      recommended for home users who run Privoxy on the same machine
  634. #      as their browser.
  635. #  
  636. #  Notes:
  637. #  
  638. #      You will need to configure your browser(s) to this proxy address
  639. #      and port.
  640. #  
  641. #      If you already have another service running on port 8118, or
  642. #      if you want to serve requests from other machines (e.g. on your
  643. #      local network) as well, you will need to override the default.
  644. #  
  645. #      If you leave out the IP address, Privoxy will bind to all
  646. #      interfaces (addresses) on your machine and may become reachable
  647. #      from the Internet. In that case, consider using access control
  648. #      lists (ACL's, see below), and/or a firewall.
  649. #  
  650. #      If you open Privoxy to untrusted users, you will also want
  651. #      to turn off the enable-edit-actions and enable-remote-toggle
  652. #      options!
  653. #  
  654. #  Example:
  655. #  
  656. #      Suppose you are running Privoxy on a machine which has the
  657. #      address 192.168.0.1 on your local private network (192.168.0.0)
  658. #      and has another outside connection with a different address. You
  659. #      want it to serve requests from inside only:
  660. #  
  661. #        listen-address  192.168.0.1:8118
  662. #  
  663. listen-address  127.0.0.1:8118
  664.  
  665. #  
  666. #  4.2. toggle
  667. #  ===========
  668. #  
  669. #  Specifies:
  670. #  
  671. #      Initial state of "toggle" status
  672. #  
  673. #  Type of value:
  674. #  
  675. #      1 or 0
  676. #  
  677. #  Default value:
  678. #  
  679. #      1
  680. #  
  681. #  Effect if unset:
  682. #  
  683. #      Act as if toggled on
  684. #  
  685. #  Notes:
  686. #  
  687. #      If set to 0, Privoxy will start in "toggled off" mode,
  688. #      i.e. behave like a normal, content-neutral proxy where all ad
  689. #      blocking, filtering, etc are disabled. See enable-remote-toggle
  690. #      below. This is not really useful anymore, since toggling is
  691. #      much easier via the web interface than via editing the conf file.
  692. #  
  693. #      The windows version will only display the toggle icon in the
  694. #      system tray if this option is present.
  695. #  
  696. toggle  1
  697.  
  698. #  
  699. #  4.3. enable-remote-toggle
  700. #  =========================
  701. #  
  702. #  Specifies:
  703. #  
  704. #      Whether or not the web-based toggle feature may be used
  705. #  
  706. #  Type of value:
  707. #  
  708. #      0 or 1
  709. #  
  710. #  Default value:
  711. #  
  712. #      1
  713. #  
  714. #  Effect if unset:
  715. #  
  716. #      The web-based toggle feature is disabled.
  717. #  
  718. #  Notes:
  719. #  
  720. #      When toggled off, Privoxy acts like a normal, content-neutral
  721. #      proxy, i.e.  it acts as if none of the actions applied to
  722. #      any URL.
  723. #  
  724. #      For the time being, access to the toggle feature can not be
  725. #      controlled separately by "ACLs" or HTTP authentication, so that
  726. #      everybody who can access Privoxy (see "ACLs" and listen-address
  727. #      above) can toggle it for all users. So this option is not
  728. #      recommended for multi-user environments with untrusted users.
  729. #  
  730. #      Note that you must have compiled Privoxy with support for this
  731. #      feature, otherwise this option has no effect.
  732. #  
  733. enable-remote-toggle  1
  734.  
  735. #  
  736. #  4.4. enable-edit-actions
  737. #  ========================
  738. #  
  739. #  Specifies:
  740. #  
  741. #      Whether or not the web-based actions file editor may be used
  742. #  
  743. #  Type of value:
  744. #  
  745. #      0 or 1
  746. #  
  747. #  Default value:
  748. #  
  749. #      1
  750. #  
  751. #  Effect if unset:
  752. #  
  753. #      The web-based actions file editor is disabled.
  754. #  
  755. #  Notes:
  756. #  
  757. #      For the time being, access to the editor can not be controlled
  758. #      separately by "ACLs" or HTTP authentication, so that everybody
  759. #      who can access Privoxy (see "ACLs" and listen-address above)
  760. #      can modify its configuration for all users. So this option is
  761. #      not recommended for multi-user environments with untrusted users.
  762. #  
  763. #      Note that you must have compiled Privoxy with support for this
  764. #      feature, otherwise this option has no effect.
  765. #  
  766. enable-edit-actions 1
  767.  
  768. #  
  769. #  4.5. ACLs: permit-access and deny-access
  770. #  ========================================
  771. #  
  772. #  Specifies:
  773. #  
  774. #      Who can access what.
  775. #  
  776. #  Type of value:
  777. #  
  778. #      src_addr[/src_masklen] [dst_addr[/dst_masklen]]
  779. #  
  780. #      Where src_addr and dst_addr are IP addresses in dotted decimal
  781. #      notation or valid DNS names, and src_masklen and dst_masklen are
  782. #      subnet masks in CIDR notation, i.e. integer values from 2 to 30
  783. #      representing the length (in bits) of the network address. The
  784. #      masks and the whole destination part are optional.
  785. #  
  786. #  Default value:
  787. #  
  788. #      Unset
  789. #  
  790. #  Effect if unset:
  791. #  
  792. #      Don't restrict access further than implied by listen-address
  793. #  
  794. #  Notes:
  795. #  
  796. #      Access controls are included at the request of ISPs and systems
  797. #      administrators, and are not usually needed by individual
  798. #      users. For a typical home user, it will normally suffice to
  799. #      ensure that Privoxy only listens on the localhost (127.0.0.1)
  800. #      or internal (home) network address by means of the listen-address
  801. #      option.
  802. #  
  803. #      Please see the warnings in the FAQ that this proxy is not
  804. #      intended to be a substitute for a firewall or to encourage
  805. #      anyone to defer addressing basic security weaknesses.
  806. #  
  807. #      Multiple ACL lines are OK. If any ACLs are specified, then
  808. #      the Privoxy talks only to IP addresses that match at least one
  809. #      permit-access line and don't match any subsequent deny-access
  810. #      line. In other words, the last match wins, with the default
  811. #      being deny-access.
  812. #  
  813. #      If Privoxy is using a forwarder (see forward below) for a
  814. #      particular destination URL, the dst_addr that is examined is
  815. #      the address of the forwarder and NOT the address of the ultimate
  816. #      target. This is necessary because it may be impossible for the
  817. #      local Privoxy to determine the IP address of the ultimate target
  818. #      (that's often what gateways are used for).
  819. #  
  820. #      You should prefer using IP addresses over DNS names, because
  821. #      the address lookups take time. All DNS names must resolve! You
  822. #      can not use domain patterns like "*.org" or partial domain
  823. #      names. If a DNS name resolves to multiple IP addresses, only
  824. #      the first one is used.
  825. #  
  826. #      Denying access to particular sites by ACL may have undesired
  827. #      side effects if the site in question is hosted on a machine
  828. #      which also hosts other sites.
  829. #  
  830. #  Examples:
  831. #  
  832. #      Explicitly define the default behavior if no ACL and
  833. #      listen-address are set: "localhost" is OK. The absence of a
  834. #      dst_addr implies that all destination addresses are OK:
  835. #  
  836. #        permit-access  localhost
  837. #  
  838. #      Allow any host on the same class C subnet as www.privoxy.org
  839. #      access to nothing but www.example.com:
  840. #  
  841. #        permit-access  www.privoxy.org/24 www.example.com/32
  842. #  
  843. #      Allow access from any host on the 26-bit subnet 192.168.45.64
  844. #      to anywhere, with the exception that 192.168.45.73 may not
  845. #      access www.dirty-stuff.example.com:
  846. #  
  847. #        permit-access  192.168.45.64/26 
  848. #        deny-access    192.168.45.73     www.dirty-stuff.example.com
  849. #  
  850.  
  851. #  
  852. #  4.6. buffer-limit
  853. #  =================
  854. #  
  855. #  Specifies:
  856. #  
  857. #      Maximum size of the buffer for content filtering.
  858. #  
  859. #  Type of value:
  860. #  
  861. #      Size in Kbytes
  862. #  
  863. #  Default value:
  864. #  
  865. #      4096
  866. #  
  867. #  Effect if unset:
  868. #  
  869. #      Use a 4MB (4096 KB) limit.
  870. #  
  871. #  Notes:
  872. #  
  873. #      For content filtering, i.e. the +filter and +deanimate-gif
  874. #      actions, it is necessary that Privoxy buffers the entire document
  875. #      body. This can be potentially dangerous, since a server could
  876. #      just keep sending data indefinitely and wait for your RAM to
  877. #      exhaust -- with nasty consequences.  Hence this option.
  878. #  
  879. #      When a document buffer size reaches the buffer-limit, it is
  880. #      flushed to the client unfiltered and no further attempt to filter
  881. #      the rest of the document is made. Remember that there may be
  882. #      multiple threads running, which might require up to buffer-limit
  883. #      Kbytes each, unless you have enabled "single-threaded" above.
  884. #  
  885. buffer-limit 4096
  886.  
  887. #  
  888. #  5. FORWARDING
  889. #  =============
  890. #  
  891. #  This feature allows routing of HTTP requests through a chain
  892. #  of multiple proxies. It can be used to better protect privacy
  893. #  and confidentiality when accessing specific domains by routing
  894. #  requests to those domains through an anonymous public proxy (see
  895. #  e.g. http://www.multiproxy.org/anon_list.htm) Or to use a caching
  896. #  proxy to speed up browsing. Or chaining to a parent proxy may be
  897. #  necessary because the machine that Privoxy runs on has no direct
  898. #  Internet access.
  899. #  
  900. #  Also specified here are SOCKS proxies. Privoxy supports the SOCKS
  901. #  4 and SOCKS 4A protocols.
  902. #  
  903.  
  904. #  
  905. #  5.1. forward
  906. #  ============
  907. #  
  908. #  Specifies:
  909. #  
  910. #      To which parent HTTP proxy specific requests should be routed.
  911. #  
  912. #  Type of value:
  913. #  
  914. #      target_pattern http_parent[:port]
  915. #  
  916. #      where target_pattern is a URL pattern that specifies to which
  917. #      requests (i.e. URLs) this forward rule shall apply. Use /
  918. #      to denote "all URLs".  http_parent[:port] is the DNS name or
  919. #      IP address of the parent HTTP proxy through which the requests
  920. #      should be forwarded, optionally followed by its listening port
  921. #      (default: 8080). Use a single dot (.) to denote "no forwarding".
  922. #  
  923. #  Default value:
  924. #  
  925. #      Unset
  926. #  
  927. #  Effect if unset:
  928. #  
  929. #      Don't use parent HTTP proxies.
  930. #  
  931. #  Notes:
  932. #  
  933. #      If http_parent is ".", then requests are not forwarded to
  934. #      another HTTP proxy but are made directly to the web servers.
  935. #  
  936. #      Multiple lines are OK, they are checked in sequence, and the
  937. #      last match wins.
  938. #  
  939. #  Examples:
  940. #  
  941. #      Everything goes to an example anonymizing proxy, except SSL on
  942. #      port 443 (which it doesn't handle):
  943. #  
  944. #        forward   /      anon-proxy.example.org:8080 
  945. #        forward   :443   .
  946. #  
  947. #      Everything goes to our example ISP's caching proxy, except for
  948. #      requests to that ISP's sites:
  949. #  
  950. #        forward   /                  caching-proxy.example-isp.net:8000
  951. #        forward   .example-isp.net   .
  952. #  
  953.  
  954. #  
  955. #  5.2. forward-socks4 and forward-socks4a
  956. #  =======================================
  957. #  
  958. #  Specifies:
  959. #  
  960. #      Through which SOCKS proxy (and to which parent HTTP proxy)
  961. #      specific requests should be routed.
  962. #  
  963. #  Type of value:
  964. #  
  965. #      target_pattern socks_proxy[:port] http_parent[:port]
  966. #  
  967. #      where target_pattern is a URL pattern that specifies to which
  968. #      requests (i.e. URLs) this forward rule shall apply. Use / to
  969. #      denote "all URLs".  http_parent and socks_proxy are IP addresses
  970. #      in dotted decimal notation or valid DNS names (http_parent may
  971. #      be "." to denote "no HTTP forwarding"), and the optional port
  972. #      parameters are TCP ports, i.e. integer values from 1 to 64535
  973. #  
  974. #  Default value:
  975. #  
  976. #      Unset
  977. #  
  978. #  Effect if unset:
  979. #  
  980. #      Don't use SOCKS proxies.
  981. #  
  982. #  Notes:
  983. #  
  984. #      Multiple lines are OK, they are checked in sequence, and the
  985. #      last match wins.
  986. #  
  987. #      The difference between forward-socks4 and forward-socks4a
  988. #      is that in the SOCKS 4A protocol, the DNS resolution of the
  989. #      target hostname happens on the SOCKS server, while in SOCKS 4
  990. #      it happens locally.
  991. #  
  992. #      If http_parent is ".", then requests are not forwarded to another
  993. #      HTTP proxy but are made (HTTP-wise) directly to the web servers,
  994. #      albeit through a SOCKS proxy.
  995. #  
  996. #  Examples:
  997. #  
  998. #      From the company example.com, direct connections are made to all
  999. #      "internal" domains, but everything outbound goes through their
  1000. #      ISP's proxy by way of example.com's corporate SOCKS 4A gateway
  1001. #      to the Internet.
  1002. #  
  1003. #        forward-socks4a   /              socks-gw.example.com:1080   www-cache.example-isp.net:8080 
  1004. #        forward           .example.com   .
  1005. #  
  1006. #      A rule that uses a SOCKS 4 gateway for all destinations but no
  1007. #      HTTP parent looks like this:
  1008. #  
  1009. #        forward-socks4   /               socks-gw.example.com:1080  .
  1010. #  
  1011.  
  1012. #  
  1013. #  6. WINDOWS GUI OPTIONS
  1014. #  ======================
  1015. #  
  1016. #  Privoxy has a number of options specific to the Windows GUI
  1017. #  interface:
  1018. #  
  1019.  
  1020. #  If "activity-animation" is set to 1, the Privoxy icon will animate
  1021. #  when "Privoxy" is active. To turn off, set to 0.
  1022. #  
  1023. #activity-animation   1
  1024.  
  1025. #  If "log-messages" is set to 1, Privoxy will log messages to the
  1026. #  console window:
  1027. #  
  1028. log-messages   0
  1029.  
  1030. #  If "log-buffer-size" is set to 1, the size of the log buffer,
  1031. #  i.e. the amount of memory used for the log messages displayed in
  1032. #  the console window, will be limited to "log-max-lines" (see below).
  1033. #  
  1034. #  Warning: Setting this to 0 will result in the buffer to grow
  1035. #  infinitely and eat up all your memory!
  1036. #  
  1037. #log-buffer-size 1
  1038.  
  1039. #  log-max-lines is the maximum number of lines held in the log
  1040. #  buffer. See above.
  1041. #  
  1042. #log-max-lines 200
  1043.  
  1044. #  If "log-highlight-messages" is set to 1, Privoxy will highlight
  1045. #  portions of the log messages with a bold-faced font:
  1046. #  
  1047. #log-highlight-messages 1
  1048.  
  1049. #  The font used in the console window:
  1050. #  
  1051. #log-font-name Comic Sans MS
  1052.  
  1053. #  Font size used in the console window:
  1054. #  
  1055. #log-font-size 8
  1056.  
  1057. #  "show-on-task-bar" controls whether or not Privoxy will appear as
  1058. #  a button on the Task bar when minimized:
  1059. #  
  1060. #show-on-task-bar 0
  1061.  
  1062. #  If "close-button-minimizes" is set to 1, the Windows close button
  1063. #  will minimize Privoxy instead of closing the program (close with
  1064. #  the exit option on the File menu).
  1065. #  
  1066. #close-button-minimizes 1
  1067.  
  1068. #  The "hide-console" option is specific to the MS-Win console version
  1069. #  of Privoxy.  If this option is used, Privoxy will disconnect from
  1070. #  and hide the command console.
  1071. #  
  1072. #hide-console
  1073.  
  1074. #  
  1075.